package com.mdxx.xczd.ui.contract;

import com.mdxx.xczd.bean.UserBeanResult;
import com.mdxx.xczd.ui.base.BaseModel;
import com.mdxx.xczd.ui.base.BasePresenter;
import com.mdxx.xczd.ui.base.BaseView;

import rx.Observable;

/**
 * Created by MD-02 on 2017/1/13.
 */

public interface LoginContract {
    interface Model extends BaseModel {
        Observable<UserBeanResult> getLoginData(String username, String password);
    }

    interface View extends BaseView {
        void returnLoginData();
    }

    abstract static class Presenter extends BasePresenter<View, Model> {
        public abstract void getLoginRequest(String username, String password);
    }
}
